package com.example.kotlinExample

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cache.annotation.EnableCaching
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.ComponentScans
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories
import org.springframework.data.jpa.repository.config.EnableJpaRepositories

@EnableElasticsearchRepositories(basePackages = ["com.example.kotlinExample.repository.es"])
@EnableCaching
@EnableJpaRepositories(basePackages = ["com.example.kotlinExample.repository.db"])
@SpringBootApplication
class KotlinExampleApplication

fun main(args: Array<String>) {
	runApplication<KotlinExampleApplication>(*args)
}
